/**
 * ...
 * @author Thot
 */

function MapVO()
{
	this.layers = new Array();
}


MapVO.prototype.name = "";
MapVO.prototype.type = "";
MapVO.prototype.layers = null;

MapVO.prototype.removeLayerVOById = function( p_id )
{
	var i = 0;
	var max = this.layers.length;
	var vo = null;
	var layers = new Array();
	
	for( i = 0; i < max; i++ )
	{
		vo = this.layers[i];
		if( vo.name != p_id )
		{
			layers.push(vo);
		}
	}
	
	this.layers = layers;
};

MapVO.prototype.getLayerVOById = function( p_id )
{
	var i = 0;
	var max = this.layers.length;
	var vo = null;
	
	for( i = 0; i < max; i++ )
	{
		vo = this.layers[i];
		if( vo.name == p_id )
		{
			return vo;
		}
	}
	
	return null;
};


//{
	//"name":"home",
	//"type":"isomap",
	//"layers":[
		//{
			//"lazy":false,
			//"sortFunc":null,
			//"sortArgs":null,
			//"name":"ground",
			//"displayList":[
				//[64,32,0,64,32,1,true,"grass",false],
				//[96,48,0,64,32,1,true,"grass",false]
			//]
		//},
		//{
			//"lazy":false,
			//"sortFunc":null,
			//"sortArgs":null,
			//"name":"ground",
			//"displayList":[
				//[64,32,0,64,32,1,true,"frog",false],
				//[96,48,0,64,32,1,true,"moulin",false]
			//]
		//},
	//]
//}	